package org.btik.light.mobile.ui.serial.controller.entity;


/**
 * @author lustre
 * @since 2023/4/6 18:39
 */
public class SerialPortInfo {
    private static final String UNKNOWN = "UNKNOWN";
    private String devName;

    private String productName;

    private String manufacturerName;

    /**
     * 厂商的产品类型
     */
    private String vendorType;

    /**
     * 厂商名称
     */
    private String vendorName;


    public String getDevName() {
        return devName == null ? UNKNOWN : devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getProductName() {
        return productName == null ? UNKNOWN : productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getManufacturerName() {
        return manufacturerName == null ? UNKNOWN : manufacturerName;
    }

    public void setManufacturerName(String manufacturerName) {
        this.manufacturerName = manufacturerName;
    }


    public String getVendorType() {
        return vendorType == null ? UNKNOWN : vendorType;
    }

    public void setVendorType(String vendorType) {
        this.vendorType = vendorType;
    }

    public String getVendorName() {
        return vendorName == null ? UNKNOWN : vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    public SerialPortInfo(String devName, String productName, String manufacturerName) {
        this.devName = devName;
        this.productName = productName;
        this.manufacturerName = manufacturerName;
    }
}
